﻿using AutoMapper;
using S.PurchaseAndSales.Domain.Model;
using S.PurchaseAndSales.Read.Api.Dto;

namespace S.PurchaseAndSales.Read.Api.Extensions.AutoMapper
{
    public class ReadProfile : Profile
    {
        public ReadProfile()
        {
            CreateMap<VendorModel, GetVendorByIdDto>(); //供应商
            CreateMap<CustomerInformationModel, GetCustomByIdDto>(); //客户
            CreateMap<SheepSaleModel, SheepFillGetByIdDto>();//羊只详情

            CreateMap<PurchaseFormModel, PurchaseFormGetByIdDto>(); //采购反填
        }
    }
}
